#include "ProxyServerNetServerModule.h"
#include "ProxyServerNetWSModule.h"
#include "ProxyServerNetServerPlugin.h"

//
//
#ifdef FG_DYNAMIC_PLUGIN

FG_EXPORT void DllStartPlugin(IPluginManager* pm)
{

    CREATE_PLUGIN(pm, ProxyServerNetServerPlugin)

};

FG_EXPORT void DllStopPlugin(IPluginManager* pm)
{
    DESTROY_PLUGIN(pm, ProxyServerNetServerPlugin)
};

#endif

const int FragrantGrass::ProxyServerNetServerPlugin::GetPluginVersion()
{
    return 0;
}

const std::string FragrantGrass::ProxyServerNetServerPlugin::GetPluginName()
{
	return GET_CLASS_NAME(ProxyServerNetServerPlugin);
}

void FragrantGrass::ProxyServerNetServerPlugin::Install()
{
    REGISTER_MODULE(m_pPluginManager, IProxyServerNetServerModule, ProxyServerNetServerModule)
    REGISTER_MODULE(m_pPluginManager, IProxyServerNetWSModule, ProxyServerNetWSModule)

}

void FragrantGrass::ProxyServerNetServerPlugin::Uninstall()
{
    UNREGISTER_MODULE(m_pPluginManager, IProxyServerNetWSModule, ProxyServerNetWSModule)
    UNREGISTER_MODULE(m_pPluginManager, IProxyServerNetServerModule, ProxyServerNetServerModule)
}